sesl.androidx
Toggle table of contents
main
Platform filter
main
Switch theme
Search in API
sesl.androidx
core
/
androidx.core.app
/
[main]AppLocalesStorageHelper
App
Locales
Storage
Helper
@
RestrictTo
(
value
=
LIBRARY_GROUP_PREFIX
)
open
class
AppLocalesStorageHelper
(
source
)
Helper class to manage storage of locales in app's persistent files.
Members
Functions
persist
Locales
Link copied to clipboard
open
fun
persistLocales
(
@
NonNull
context
:
@
NonNull
Context
,
@
NonNull
locales
:
@
NonNull
String
)
Stores the provided locales in internal app file, using the application context.
read
Locales
Link copied to clipboard
@
NonNull
open
fun
readLocales
(
@
NonNull
context
:
@
NonNull
Context
)
:
@
NonNull
String
Returns app locales after reading from storage, fetched using the application context.